home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000122_icon-group-sender_Mon Oct 30 08:30:39 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9UFUVF25774
  4.     for icon-group-addresses; Mon, 30 Oct 2000 08:30:31 -0700 (MST)
  5. Message-Id: <200010301530.e9UFUVF25774@baskerville.CS.Arizona.EDU>
  6. From: Atle <trollet@skynet.be>
  7. X-Newsgroups: comp.lang.icon
  8. Subject: Re: Yet another Newbie question....
  9. Date: Sat, 28 Oct 2000 18:03:26 +0200
  10. X-Trace: news1.skynet.be 972748035 14352 195.238.29.161 (28 Oct 2000 15:47:15 GMT)
  11. X-Complaints-To: abuse@skynet.be
  12. X-Accept-Language: en
  13. To: icon-group@cs.arizona.edu
  14. Errors-To: icon-group-errors@cs.arizona.edu
  15. Status: RO
  16. Content-Length: 1073
  17.  
  18. symbiot@my-deja.com wrote:
  19.  
  20. > Hi,
  21. >
  22. > And thanks in advance to all who have been helping me thru this
  23. > learning curve of getting started in ICON.
  24. >
  25. > My present problem is trying to write a rountine that counts only
  26. > letters in text and skips blanks, numbers, punctuation, etc.
  27. >
  28. > I tried....
  29. >
  30. > if member(&letters,line[index]) then totalcount +:= 1
  31. >
  32. > ...but for some unexplicable reason, it barfed on the very first
  33. > character with
  34. >
  35. > set or table expected.
  36. > Offending value &letters
  37. >
  38. > Isn't &letters a cset? You can use it in other "set" functions....can't
  39. > you? What am I missing?
  40. >
  41. > Assistance appreciated!
  42.  
  43. I see you haven't been getting much feedback on this, so I will try again.
  44. Unfortunately, as you see, I am no more bewandered in Icon than yourself, on the contrary, I am now working with Beta.
  45. But when initializing, isn't is important to distinguish between ' and " - one is a cset the other a string?
  46.  
  47. I have no idea if this gets you anywhere, but since there doesn't seem to be many pros out there to help either of us right now ...
  48.  
  49. BW, Atle
  50.  
  51.